package cn.bdqn.pn.controller.page;

import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/page")
public class PageController {
    /**
     * 进入首页面
     * @return
     */
    @RequestMapping(value = "/shopindex")
    public String showInfo(){
        return "shops_index";
    }


    @RequestMapping(value = "/SeatManage")
    public String SeatManage(){
        return "SeatManage";
    }

    @RequestMapping(value = "/MySeat")
    public String MySeat(){
        return "MySeat";
    }


    /**
     * 进入场地添加页面
     * @param placeId
     * @return
     */
    @RequestMapping(value = "/MySeatAdd")
    public ModelAndView MySeatAdd(@Param("placeId") Integer placeId){
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("placeId",placeId);
        modelAndView.setViewName("MySeatAdd");
        System.out.println("========================placeId="+placeId+"===============");
        return modelAndView;
    }


    @RequestMapping(value = "/cityList")
    public String cityList(){
        return "city_list";
    }

}
